<%--
  Created by IntelliJ IDEA.
  User: DongHuaYuan
  Date: 2024/1/13
  Time: 17:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

    <h1>Hello JSP</h1>

    <%--  相当于在servlet方法中执行  --%>
    <%
        String name = "张三";
        System.out.println(name+":"+age);
        show();
    %>


    <%--  相当于在out.println(xxx)，作为xxx参数  --%>
    <%=
       "加油"
    %>

    <%--  相当于成员变量  --%>
    <%!
        int age = 100;
        void show(){
            System.out.println("小小的展示一下");
        }
    %>
</body>
</html>
